package com.atguigu.gmall.realtime.app.dwm;

import com.atguigu.gmall.realtime.bean.OrderWide;
import com.atguigu.gmall.realtime.bean.PaymentInfo;
import com.atguigu.gmall.realtime.bean.PaymentWide;

import java.math.BigDecimal;

public class Demo {
    public static void main(String[] args) {
        PaymentInfo paymentInfo = new PaymentInfo();
        paymentInfo.setId(31980L);
        paymentInfo.setOrder_id(46955L);
        paymentInfo.setTotal_amount(BigDecimal.valueOf(82575.00));
        paymentInfo.setUser_id(1L);
        paymentInfo.setSubject("TCL 75Q10 75英寸 QLED原色量子点电视 安桥音响 AI声控智慧屏 超薄全面屏 MEMC防抖 3+32GB 平板电视等10件商品");
        paymentInfo.setPayment_type("1101");
        paymentInfo.setCreate_time("2021-05-06 21:30:18");
        paymentInfo.setCallback_time("2021-05-06 21:30:38");

        System.out.println(paymentInfo);


        OrderWide orderWide = new OrderWide(
                143662L,46955L,18L,BigDecimal.valueOf(9199.00),3L,"TCL 75Q10 75英寸 QLED原色量子点电视 安桥音响 AI声控智慧屏 超薄全面屏 MEMC防抖 3+32GB 平板电视",
                6L,"1101",1L,BigDecimal.valueOf(82575.00),BigDecimal.ZERO,BigDecimal.ZERO,BigDecimal.valueOf(82557.00),
                BigDecimal.valueOf(18.00),null,BigDecimal.valueOf(27597.00),BigDecimal.ZERO,null,null,"2021-05-06 21:28:58",null,null,
                null,"上海","310000","CN-31","CN-SH",null,null,5L,4L,86L,"TCL巨幕私人影院电视 4K超高清 AI智慧屏  液晶平板电视机","TCL",
                "平板电视"

        );

        System.out.println(orderWide);




        PaymentWide paymentWide = new PaymentWide(paymentInfo,orderWide);
        System.out.println(paymentWide);


    }
}
